#include <iostream>
#include <iterator>
#include <vector>
#include <algorithm>

using std::cout;
using std::endl;
using std::ostream_iterator;
using std::vector;
using std::copy;

//operator<<
//<<
void test()
{
    vector<int> vec = {1, 3, 7, 9, 4};
    ostream_iterator<int> osi(cout, "\n");
    copy(vec.begin(), vec.end(), osi);

    /* cout << 1 << "\n"; */
    /* cout << 3 << endl; */
    /* cout << 7 << endl; */
}

int main(int argc, char *argv[])
{
    test();
    return 0;
}

